package com.example.mallorder.feign;


import com.example.mallorder.api.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yang
 */
@FeignClient(value = "mall-order")
public interface OrderFeign {

    @RequestMapping(value="/order/prod/{pid}",method = RequestMethod.GET)
    Order createOrder(Integer pid);
}
